package com.itheima.em.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 地图标注点类型
 */
@Getter
public enum PointType {

    DEFAULT(0, "DEFAULT","默认类型"),
    FENCE(1, "FENCE","围栏类型"),
    REGION(2, "REGION","区域类型");
    @EnumValue
    private int value;
    private String name;
    private String desc;

    PointType(int value, String name,String desc) {
        this.value = value;
        this.name = name;
        this.desc = desc;
    }

    @Override
    public String toString() {
        return this.desc;
    }

}
